package com.cmw.core.util;

import java.util.Random;

/**
 * 验证码生成类 
 * @author chengmingwei
 * @date 2015-08-08 21:10
 */
public class ValidCodeHandler {
	/**
	 * 获取一个6位数字的验证码
	 * @return 返回6位验证码
	 */
	public static String getvalidcode() {
		Random random = new Random();
		int num = 100000 + random.nextInt(899999) + 1;
		return num + "";
	}
}
